package com.cby.feedback.controller;


import com.cby.feedback.entity.query.CbyFeedBackQuery;
import com.cby.feedback.service.CbyFeedbackService;
import com.cby.other.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wskh
 * @since 2021-11-07
 */
@Api(tags = "反馈管理")
@RestController
@RequestMapping("/feedback/cby_feedback")
@CrossOrigin
public class CbyFeedbackController {

    @Autowired
    CbyFeedbackService feedbackService;

    @ApiOperation("条件分页查询反馈数据")
    @PostMapping("queryFeedBack/{current}/{limit}")
    public R queryFeedBack(@PathVariable long current, @PathVariable long limit, @RequestBody CbyFeedBackQuery cbyFeedBackQuery){
        return feedbackService.queryFeedBack(current,limit,cbyFeedBackQuery);
    }

}

